﻿using System.ComponentModel.DataAnnotations;

namespace AnQinFrameWorkAPI.Entity.Blog.DTO.BlogUser;

/// <summary>
///     博客用户新增模型
/// </summary>
public class BlogUserAddDTO
{
    /// <summary>
    ///     博客用户编码
    /// </summary>
    [Required(ErrorMessage = "博客文章Id不可为空")]
    public string Code { get; set; }

    /// <summary>
    ///     博客用户名称
    /// </summary>
    [Required(ErrorMessage = "博客用户名称不可为空")]
    public string Name { get; set; }

    /// <summary>
    ///     博客用户头像
    /// </summary>
    public string? HeadImage { get; set; }

    /// <summary>
    ///     博客用户账号
    /// </summary>
    [Required(ErrorMessage = "博客用户账号不可为空")]
    public string Account { get; set; }

    /// <summary>
    ///     博客用户密码
    /// </summary>
    [Required(ErrorMessage = "博客用户密码不可为空")]
    public string Password { get; set; }

    /// <summary>
    ///     博客用户邮箱
    /// </summary>
    [Required(ErrorMessage = "博客用户邮箱不可为空")]
    public string Email { get; set; }
}